import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import viteCompression from 'vite-plugin-compression';
import { visualizer } from 'rollup-plugin-visualizer';
import Components from 'unplugin-vue-components/vite';

export default defineConfig({
  plugins: [vue(), viteCompression(), visualizer(), Components()],
  base:'/stock/',
  build: {
    rollupOptions: {
      output: {
        manualChunks: {
          axios: ['axios'],
          vue: ['vue'],
          'html-parser': ['node-html-parser'],
          echarts: ['echarts'],
          flowbite: ['flowbite'],
        },
      },
    },
  },
});
